Skip to content

Fix SV2 reserved weight floor calculation#82

Merged
Sjors merged 1 commit intostratum-mining:masterfrom
Sjors:2026/02/max
Feb 16, 2026
Merged

Fix SV2 reserved weight floor calculation#82
Sjors merged 1 commit intostratum-mining:masterfrom
Sjors:2026/02/max

Conversation

@Sjors
Copy link
Copy Markdown
Collaborator

@Sjors Sjors commented Feb 16, 2026

Use std::max so block_reserved_weight enforces the 2000 weight minimum rather than capping at 2000.

Add a focused regression test that covers the floor behavior and documents the min-vs-cap failure mode.

@Sjors
Copy link
Copy Markdown
Collaborator Author

Sjors commented Feb 16, 2026

I'll re-run CI after #85.

Use std::max so block_reserved_weight enforces the 2000 weight
minimum rather than capping at 2000.

Add a focused regression test that covers the floor behavior and
documents the min-vs-cap failure mode.

Reported by xyephy:
stratum-mining#80 (comment)

Assisted-by: OpenAI GPT-5.3-Codex
@Sjors Sjors merged commit 46272e9 into stratum-mining:master Feb 16, 2026
19 checks passed
@Sjors Sjors deleted the 2026/02/max branch February 16, 2026 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant